import React from 'react';
import ReactDOM from 'react-dom';
// import App from './App';
import Rotues from './components/Routes';
import './style.css'
// Provider 的作用是它包裹的组件都可以从store里获取到数据
import { Provider } from 'react-redux'
import { ConnectedRouter } from 'connected-react-router'
import store, { history } from './store'


ReactDOM.render(
  <Provider store={store}>
    <ConnectedRouter history={history}>
      <Rotues />
    </ConnectedRouter>
  </Provider>
  ,
  document.getElementById('root')
);
